home *** CD-ROM | disk | FTP | other *** search
- Path: news.production.compuserve.com!news
- From: ling f. zhen <103115.717@CompuServe.COM>
- Newsgroups: comp.lang.c++
- Subject: How to define SET type?
- Date: 25 Jan 1996 17:47:50 GMT
- Organization: SubMicron Systems Inc
- Message-ID: <4e8fo6$frn$1@mhafn.production.compuserve.com>
-
- After defining:
-
- enum Error_Type {Error1,
- Error2,
- Error3};
-
- I'd like to define a variable which can contain 0 or all the
- items in the enum list. In Pascal, there is a SET type and let
- you do:
-
- CurrentError : set of Error_Type;
-
- How can I can do the similar in C?
-
- Thanks for the advice.
-
- Ling Zhen
- lzhen@subm.com
-